package com.app.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_strive_funds")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class StriveFundsModel {
    private Integer id;
    private Integer departmentId;
    @TableField(exist = false)
    private String department;
    private Integer amount;
    private String content;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private String finishTime;
    private String year;
    @TableField(exist = false)
    private Integer sum;
    @TableField(exist = false)
    private Double sumAll;
    @TableField(exist = false)
    private Double sumCount;
    @TableField(exist = false)
    private Integer limit;
    @TableField(exist = false)
    private Integer page;

    @TableField(exist = false)
    private Integer redCount;
    @TableField(exist = false)
    private Integer blueCount;
    @TableField(exist = false)
    private Integer yellowCount;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private LocalDateTime updateTime;
}
